home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5112 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: hermes.oc.com!usenet
  2. From: Larry Weiss <lfw@oc.com>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Unable to check callo
  5. Date: Thu, 08 Feb 1996 17:49:48 -0600
  6. Organization: OpenConnect Systems, Dallas, TX, USA
  7. Message-ID: <311A8C1C.77CB@oc.com>
  8. References: <4fakm9$24f@gail.ripco.com> <danpop.823791819@rscernix>
  9. NNTP-Posting-Host: ocs2228.oc.com
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 2.0 (Win16; I)
  14. CC: lfw@oc.com
  15.  
  16. Dan Pop wrote:
  17.  > 
  18.  > In <4fakm9$24f@gail.ripco.com> mambuhl@ripco.com (Martin Ambuhl) writes:
  19.  > >At the time of K&R1 (1978), the "standard" library had calloc() but
  20.  > >_not_ malloc().  malloc() is a stripped down version of calloc() rather
  21.  > >than calloc() being an augmented malloc().  So calloc() exists in older
  22.  > >C programs that would break if it were not available.
  23.  > 
  24.  > It's a fairly long time since I've read K&R1, but I clearly remember
  25.  > malloc being described there (including a demo Unix implementation).
  26.  > 
  27.  
  28. Dan, you may be remembering K&R 1's   alloc()  function.
  29. I find no reference to a malloc() in K&R 1.
  30.